Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spinning up BL instance using docker-compose up #2559

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

dkinzer
Copy link
Member

@dkinzer dkinzer commented Nov 26, 2021

Fixes #2557

docker-compose up is failing to spin up a BL instance for various
reasons.

This commit makes the following changes

  • Adds the shared-mime-info lib so that bundle install will not fail.
  • Adds yarn so that webpacker assets:precompile does not fail
  • Adds .dockerignore to ignore files that can pollute docker instance
    with local Gemfile.lock etc.
  • Updates the default ruby and rails version to avoid no method deep_transform_values on Hash error
  • Updates with_solr rake method to stop rake task frown downloading
    a solr zip file when solr docker instance is already available via
    docker-compose
  • Add ENGINE_CART_RAILS_OPTIONS environment to dockerfile-compose.yml
    app config to avoid solr_wrapper from being invoked by the
    solr_wrapper engine (same reason as above)
  • Stop mounting . from app to avoid seg fault and also stop polluting
    instance with host's Gemfile.lock and host's .internal_test_app

`docker-compose up` is failing to spin up a BL instance for various
reasons.

This commit makes the following changes

* Adds the `shared-mime-info` lib so that bundle install will not fail.
* Adds yarn so that `webpacker assets:precompile` does not fail
* Adds .dockerignore to ignore files that can pollute docker instance
  with local Gemfile.lock etc.
* Updates the default ruby and rails version to avoid no method deep_transform_values on Hash error
* Updates with_solr rake method to stop rake task frown downloading
  a solr zip file when solr docker instance is already available via
  docker-compose
* Add ENGINE_CART_RAILS_OPTIONS environment to dockerfile-compose.yml
  app config to avoid solr_wrapper from being invoked by the
  solr_wrapper engine (same reason as above)
* Stop mounting . from app to avoid seg fault and also stop polluting
  instance with host's Gemfile.lock and host's .internal_test_app
dkinzer added a commit to dkinzer/blacklight that referenced this pull request Nov 26, 2021
dkinzer added a commit to dkinzer/blacklight that referenced this pull request Nov 26, 2021
@dkinzer dkinzer merged commit c248912 into projectblacklight:main Nov 29, 2021
@dkinzer dkinzer deleted the 2557-fix-docker-compose-up branch November 29, 2021 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker-compose does not work solr can not be run as root
2 participants